#include "SteeringBehavior.h"
#include "AIBehavior.h"


#define AI_SAFE_DELETE(p)		if(p != NULL) {delete p; p = NULL;}


AI_Behavior::AI_Behavior(void)
{
	m_pSteeringBehaviorInterface = NULL;
}


AI_Behavior::~AI_Behavior(void)
{
	AI_SAFE_DELETE(m_pSteeringBehaviorInterface);
}


Steering_Behavior_Interface* AI_Behavior::get_steering_behavior(void)
{
	if (!m_pSteeringBehaviorInterface) m_pSteeringBehaviorInterface = new SteeringBehavior;
	return m_pSteeringBehaviorInterface;
}
